Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Oct 21, 2024

Problem

The Rust renderer includes the implementation of Anchor traits by default under the anchor and anchor-idl-build features. This creates a problem when generating a client for a solana-program version not compatible with Anchor.

Solution

Add an anchorTraits option to the Rust renderer to be able to toggle the implementation of Anchor traits. The default value is set to true to keep the current behaviour.

@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2024

🦋 Changeset detected

Latest commit: e4c2dea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@codama/renderers-rust Patch
@codama/renderers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@febo febo requested a review from lorisleiva October 21, 2024 11:26
@febo febo force-pushed the febo/anchor-traits-option branch from 77ad09f to e4c2dea Compare October 21, 2024 11:42
Copy link
Member

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@febo febo merged commit 0c96251 into main Oct 21, 2024
3 checks passed
@febo febo deleted the febo/anchor-traits-option branch October 21, 2024 13:04
@github-actions github-actions bot mentioned this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants